<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>

    // const obj1 = {
    //     name:"admin"
    // };
    // const obj2 = Object.create(obj1);

    // // obj2.name = "zhangsan";
    // obj2.__proto__.name = "zhangsan";

    // console.log(obj1);
    // console.log(obj1.name);
    // console.log(obj2);
    // console.log(obj2.name);





    // const obj1 = {name:"admin"}
    // const obj2 = {age:18}

    // const obj3 = Object.assign(obj1, obj2);

    // console.log(obj1);
    // console.log(obj2);
    // console.log(obj3);
    // console.log(obj3 === obj1);





    // console.log( Object.is( "hello", "hello" ) );
    // console.log( Object.is( NaN, NaN ) );
    // console.log( Object.is( {}, {} ) );
    // console.log( Object.is( NaN, null ) );




    // const obj1 = {name:"admin"}
    // const obj2 = {age:18}
    // const obj3 = Object.setPrototypeOf(obj1, obj2);
    // console.log(obj1);
    // console.log(obj2);
    // console.log(obj3);
    // console.log(obj3 === obj1);
    
    // console.log(obj3.name);
    // console.log(obj3.age);


    // const obj1 = {};

    // console.log(obj1.__proto__ === Object.prototype)

    // console.log( Object.getPrototypeOf(obj1) )
    // console.log( Object.getPrototypeOf(obj1) === Object.prototype )


    
</script>
</html>